package com.rent.appointment.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rent.appointment.entity.ApplyView;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ApplyViewDao extends BaseMapper<ApplyView> {
    @Select("SELECT * FROM apply_view WHERE user_id = #{userId} AND house_id = #{houseId} ")
    ApplyView selectByUserIdAndHouseId(@Param("userId") Long userId, @Param("houseId") Long houseId);
}
